package com.xs.ai.limiter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@RefreshScope
@Component
public class RateLimitProperties {

    @Value("${rate.limit:100.0}")
    private double rateLimit;

    public double getRateLimit() {
        return rateLimit;
    }
}
